<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::log::Component_payload_type_dict_by_val_via_map&lt; Map_to_cfg_t &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1log.html">log</a></li><li class="navelem"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html">Component_payload_type_dict_by_val_via_map</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::log::Component_payload_type_dict_by_val_via_map&lt; Map_to_cfg_t &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>An internal-use dictionary for fast lookup of small <code>Cfg</code> values keyed by <code>type_info</code> objects, given NO guarantee that any type involved shall have 1 uniquely-addressed such object; impl = map.  
 <a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for flow::log::Component_payload_type_dict_by_val_via_map&lt; Map_to_cfg_t &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map__coll__graph.svg" width="223" height="143"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a235700f0b4b2831771d5730fafa51de5"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a235700f0b4b2831771d5730fafa51de5">Map_to_cfg</a> = Map_to_cfg_t</td></tr>
<tr class="memdesc:a235700f0b4b2831771d5730fafa51de5"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>.  <a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a235700f0b4b2831771d5730fafa51de5">More...</a><br /></td></tr>
<tr class="separator:a235700f0b4b2831771d5730fafa51de5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2037284af5a94ef0dc8d7239571ed9ca"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a2037284af5a94ef0dc8d7239571ed9ca">Cfg</a> = typename Map_to_cfg::mapped_type</td></tr>
<tr class="memdesc:a2037284af5a94ef0dc8d7239571ed9ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>.  <a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a2037284af5a94ef0dc8d7239571ed9ca">More...</a><br /></td></tr>
<tr class="separator:a2037284af5a94ef0dc8d7239571ed9ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9ba991396a1dd681c01483944426f6f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a9ba991396a1dd681c01483944426f6f3">insert</a> (const std::type_info &amp;type, <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a2037284af5a94ef0dc8d7239571ed9ca">Cfg</a> cfg)</td></tr>
<tr class="memdesc:a9ba991396a1dd681c01483944426f6f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>.  <a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a9ba991396a1dd681c01483944426f6f3">More...</a><br /></td></tr>
<tr class="separator:a9ba991396a1dd681c01483944426f6f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba69de7999a8ac91473ecef1b2fab62b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#aba69de7999a8ac91473ecef1b2fab62b">lookup</a> (const std::type_info &amp;type, <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a2037284af5a94ef0dc8d7239571ed9ca">Cfg</a> *cfg) const</td></tr>
<tr class="memdesc:aba69de7999a8ac91473ecef1b2fab62b"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>.  <a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#aba69de7999a8ac91473ecef1b2fab62b">More...</a><br /></td></tr>
<tr class="separator:aba69de7999a8ac91473ecef1b2fab62b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a27e606ec45c20b267fc6f6e53e42bf01"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a27e606ec45c20b267fc6f6e53e42bf01">S_BY_PTR_ELSE_VAL</a> = false</td></tr>
<tr class="memdesc:a27e606ec45c20b267fc6f6e53e42bf01"><td class="mdescLeft">&#160;</td><td class="mdescRight">For meta-programming convenience: <code>false</code> indicates for us <code>type_info</code> equality &lt;=&gt; <code>&amp;type_info</code> equality is <em>not</em> guaranteed; meaning we belong to the <code>Component_payload_type_dict_by_val_*</code> family.  <a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a27e606ec45c20b267fc6f6e53e42bf01">More...</a><br /></td></tr>
<tr class="separator:a27e606ec45c20b267fc6f6e53e42bf01"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a03490a4d303850f499ae8c73fcc71a73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a235700f0b4b2831771d5730fafa51de5">Map_to_cfg</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a03490a4d303850f499ae8c73fcc71a73">m_dict</a></td></tr>
<tr class="memdesc:a03490a4d303850f499ae8c73fcc71a73"><td class="mdescLeft">&#160;</td><td class="mdescRight">A <code>...map&lt;type_index, Cfg&gt;</code>, wherein <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a9ba991396a1dd681c01483944426f6f3" title="See Component_payload_type_dict_by_ptr_via_map.">insert()</a> simply performs <code>m_dict[type_index(type)] = cfg</code>.  <a href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a03490a4d303850f499ae8c73fcc71a73">More...</a><br /></td></tr>
<tr class="separator:a03490a4d303850f499ae8c73fcc71a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename Map_to_cfg_t&gt;<br />
class flow::log::Component_payload_type_dict_by_val_via_map&lt; Map_to_cfg_t &gt;</div><p >An internal-use dictionary for fast lookup of small <code>Cfg</code> values keyed by <code>type_info</code> objects, given NO guarantee that any type involved shall have 1 uniquely-addressed such object; impl = map. </p>
<p >Note: The API/semantics documented here are shared by all other <code>Component_payload_type_dict_by_val_*</code> types.</p>
<p >Please see <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>. Our API/semantics documented here are the same, except that one may not use <code>Component_payload_type_dict_by_ptr_*</code>, when the <code>&amp;typeid(...)</code> uniqueness (for a given distinct <code>...</code>) guarantee cannot be made. So in that case one would use a <code>Component_payload_type_dict_by_val_*</code> (which, informally, will tend to be slower for <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#aba69de7999a8ac91473ecef1b2fab62b" title="See Component_payload_type_dict_by_ptr_via_map.">lookup()</a>).</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Map_to_cfg_t</td><td>Internally-used map type of choice. It must have the API common to <code>std::map</code> and <code>std::unordered_map</code>; and must have <code>key_type</code> = <code>std::type_index</code>. In other words, it must be: <code>...map&lt;std::type_index, Cfg_t&gt;</code>: substitute your <code>...map</code> of choice (e.g., a tree or hash map from Boost or STL); and your small, copyable <code>Cfg_t</code> type of choice (e.g., <code>size_t</code>). </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00345">345</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a2037284af5a94ef0dc8d7239571ed9ca" name="a2037284af5a94ef0dc8d7239571ed9ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2037284af5a94ef0dc8d7239571ed9ca">&#9670;&nbsp;</a></span>Cfg</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Map_to_cfg_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html">flow::log::Component_payload_type_dict_by_val_via_map</a>&lt; Map_to_cfg_t &gt;::Cfg =  typename Map_to_cfg::mapped_type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>. </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00352">352</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<a id="a235700f0b4b2831771d5730fafa51de5" name="a235700f0b4b2831771d5730fafa51de5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a235700f0b4b2831771d5730fafa51de5">&#9670;&nbsp;</a></span>Map_to_cfg</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Map_to_cfg_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html">flow::log::Component_payload_type_dict_by_val_via_map</a>&lt; Map_to_cfg_t &gt;::Map_to_cfg =  Map_to_cfg_t</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>. </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00350">350</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9ba991396a1dd681c01483944426f6f3" name="a9ba991396a1dd681c01483944426f6f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ba991396a1dd681c01483944426f6f3">&#9670;&nbsp;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Map_to_cfg_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html">flow::log::Component_payload_type_dict_by_val_via_map</a>&lt; Map_to_cfg_t &gt;::insert </td>
          <td>(</td>
          <td class="paramtype">const std::type_info &amp;&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a2037284af5a94ef0dc8d7239571ed9ca">Cfg</a>&#160;</td>
          <td class="paramname"><em>cfg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>Ditto. </td></tr>
    <tr><td class="paramname">cfg</td><td>Ditto. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00552">552</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<a id="aba69de7999a8ac91473ecef1b2fab62b" name="aba69de7999a8ac91473ecef1b2fab62b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba69de7999a8ac91473ecef1b2fab62b">&#9670;&nbsp;</a></span>lookup()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Map_to_cfg_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbool.html">bool</a> <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html">flow::log::Component_payload_type_dict_by_val_via_map</a>&lt; Map_to_cfg_t &gt;::lookup </td>
          <td>(</td>
          <td class="paramtype">const std::type_info &amp;&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a2037284af5a94ef0dc8d7239571ed9ca">Cfg</a> *&#160;</td>
          <td class="paramname"><em>cfg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>See <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__ptr__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_ptr_via_map</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>Ditto. </td></tr>
    <tr><td class="paramname">cfg</td><td>Ditto. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Ditto. </dd></dl>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00564">564</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a03490a4d303850f499ae8c73fcc71a73" name="a03490a4d303850f499ae8c73fcc71a73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03490a4d303850f499ae8c73fcc71a73">&#9670;&nbsp;</a></span>m_dict</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Map_to_cfg_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a235700f0b4b2831771d5730fafa51de5">Map_to_cfg</a> <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html">flow::log::Component_payload_type_dict_by_val_via_map</a>&lt; Map_to_cfg_t &gt;::m_dict</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A <code>...map&lt;type_index, Cfg&gt;</code>, wherein <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html#a9ba991396a1dd681c01483944426f6f3" title="See Component_payload_type_dict_by_ptr_via_map.">insert()</a> simply performs <code>m_dict[type_index(type)] = cfg</code>. </p>
<h3>Performance</h3>
<p >The performance here is not great, actually, which is why ideally one would use a <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_val_via_map</a> (or similar) instead of a <code>*this</code>; but if <code>type_info*</code> uniqueness cannot be guaranteed, then those classes cannot be used, and one must make do with a <code>*this</code> or similar. Specifically:</p>
<p >If it is a tree (sorted) map, it is log-time &ndash; but the constant factor is (while technically a black box inside <code>std::type_index</code>) almost certainly involving lexicographic less-than string comparisons, where the string is more or less <code>type_info::name()</code>. In practice that usually contains at least the fully qualified name of each type being <code>typeid()</code>ed. Still... it is potentially not <em>too</em> terrible, as the first character to differ will end a string-compare, and this should typically come pretty early-on.</p>
<p >If it is a hash map, it is amortized constant-time &ndash; but the constant factor is (while technically a black box inside <code>std::type_info::hash_code()</code>) almost certainly composed of <em>very slow</em> hashing of the aforementioned <code>type_info::name()</code>. The constant time sounds nice, but for low N the cost of constantly hashing <code>type_info</code> names can be very high in practice. </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00403">403</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<a id="a27e606ec45c20b267fc6f6e53e42bf01" name="a27e606ec45c20b267fc6f6e53e42bf01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27e606ec45c20b267fc6f6e53e42bf01">&#9670;&nbsp;</a></span>S_BY_PTR_ELSE_VAL</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Map_to_cfg_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">constexpr <a class="el" href="classbool.html">bool</a> <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html">flow::log::Component_payload_type_dict_by_val_via_map</a>&lt; Map_to_cfg_t &gt;::S_BY_PTR_ELSE_VAL = false</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">constexpr</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>For meta-programming convenience: <code>false</code> indicates for us <code>type_info</code> equality &lt;=&gt; <code>&amp;type_info</code> equality is <em>not</em> guaranteed; meaning we belong to the <code>Component_payload_type_dict_by_val_*</code> family. </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00360">360</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>log/detail/<a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:35 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
